<?php
session_start();
if(!$_SESSION['admin']) {
	echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
	echo '<script type="text/javascript">alert("请先登录……");</script>';
	echo '<script type="text/javascript">window.location = "../index.php";</script>';
}
//ini_set("display_errors", 1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!--[if IE]><script type="text/javascript">window.location = "../ie.php";</script><![endif]-->
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>NDSOJ - 管理 - 首页</title>
	<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>
<h1>欢迎您，辛勤的管理员！</h1>
<?php
if($_SESSION['prob_privilege']) {
	echo "<p><a href=\"problem_add.php\">添加题目</a></p>";
	echo "<p><a href=\"problem_list.php\">修改/删除题目</a></p>";
}
?>
</body>
</html>
